package hotel.dao.base;

import java.sql.SQLException;
import java.util.List;

public interface GenericDao<T> 
{
	public T findById(final int id) throws SQLException;

	public List<T> findAll() throws SQLException;

	public void insert(final T entity) throws SQLException;
	
	public void update(final T entity) throws SQLException;

	public void delete(final int id) throws SQLException;
}